package com.mes.biz.mapper;

import com.mes.biz.domain.vo.OrderInstallVo;
import com.mes.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.mes.biz.domain.BizOrderInstaller;

import java.util.List;

/**
 * 销售单安装人员Mapper接口
 * @author hwg
 * @email hwg
 * @date 2023-05-15
 */
public interface BizOrderInstallerMapper extends BaseMapper<BizOrderInstaller>
{

    /**
     * 批量删除销售单安装人员
     * @param ids 需要删除的销售单安装人员ID集合
     * @return
     */
    public int deleteBizOrderInstallerByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);

    public int deleteBizOrderInstallerByOrderId(@Param("orderId") String orderId, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);

    List<BizOrderInstaller> getBizOrderInstallerByOrderId(@Param("orderId") String orderId, @Param("installerType") String installerType);

    int saveBatch(List<BizOrderInstaller> bizOrderInstallers);


    List listDeliveryStat(BizOrderInstaller bizOrderInstaller);

    List<OrderInstallVo> listInstallStat(BizOrderInstaller bizOrderInstaller);
    List<BizOrderInstaller> getInstallNameByOrderId(@Param("orderId") String orderId);
}
